package com.koron.order.overhaul.mapper;

import com.koron.order.overhaul.bean.entity.OverhaulOrderItemParamsBean;
import com.koron.order.overhaul.bean.query.OverhaulOrderItemParamsQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (OverhaulOrderItemParamsMapper)表数据库访问层
 *
 * @author twcao
 * @since 2021-09-29 09:49:29
 */
public interface OverhaulOrderItemParamsMapper {

    OverhaulOrderItemParamsBean queryById(String id);

    List<OverhaulOrderItemParamsBean> queryList(OverhaulOrderItemParamsQuery query);

    int saveOrUpdate(List<OverhaulOrderItemParamsBean> beans);

    int deleteByOrderId(@Param("orderId") String orderId);

    int hiddenByOrderId(@Param("orderId") String orderId);

    int deleteByOrderIdAndItemId(@Param("orderId") String orderId,@Param("itemId") String itemId);
}
